export function codeValidation(code, content, self) {
  var duration = 4000
  switch (code) {
    case '0':
      self.$notify({
        title: self.$t('methods.success'),
        message: content,
        type: 'success',
        duration: duration
      })
      break
    case '1':
      self.$notify({
        title: self.$t('methods.warning'),
        message: content,
        type: 'warning',
        duration: duration
      })
      break
    case '2':
      self.$notify.info({
        title: self.$t('methods.info'),
        message: content,
        duration: duration
      })
      break
    case '3':
      self.$notify.error({
        title: self.$t('methods.error'),
        message: content,
        duration: duration
      })
      break
  }
}
